home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / cenvid9.zip / ASCII.BAT < prev    next >
DOS Batch File  |  1994-03-04  |  617b  |  24 lines

  1. @echo off
  2. REM ***************************************************
  3. REM *** Ascii.bat - Display the ASCII character set ***
  4. REM *** ver.1                                       ***
  5. REM ***************************************************
  6.  
  7. cenvi %0.bat
  8. GOTO CENVI_EXIT
  9.  
  10. #define  ROW_COUNT      20
  11. #define  COL_COUNT      13
  12.  
  13. Unprintables = "\a\b\t\r\n\032\033"
  14. for ( row = 0; row < ROW_COUNT; row++ ) {
  15.    for ( col = 0; col < COL_COUNT; col++ ) {
  16.       c = ROW_COUNT*col + row
  17.       if c < 256
  18.          printf("%c-%-3d ",(NULL==strchr(Unprintables,c))?c:'.',c)
  19.    }
  20.    printf("\n")
  21. }
  22.  
  23. :CENVI_EXIT
  24.